layui.define(['layer', 'jquery', 'laytpl'], function (exports) {
  var $ = layui.$,
      layer = layui.layer,
      laytpl = layui.laytpl,
      id;

  var realNameAuthDetail = {
    init: function () {
      id = Util.getQueryString('id');
      $.get('/admin/realnameauth/getUserInfo', {id: id}, function (result) {
        var getTpl = $('#content').html(),
            body = $("body");
        laytpl(getTpl).render(result, function (html) {
          body.html(html);
        });
      }, 'json')
    }
  }
  realNameAuthDetail.init();

  exports('realNameAuthDetail', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
})